<div data-role='content'>
	<div class="login-box white-background ">
		<?php
		$cont = 1;
		define('MAXROW', 2);
		$idTropa=1;
		foreach ($tropas as $nivel) {
			$tropa=new Unidad($idTropa);
			if ($cont == 1){
				echo "<div class='ui-grid-a'>";
				echo "<div class='ui-block-a build-box negativo'>";
			} else{
				echo "<div class='ui-block-b build-box negativo'>";
			}
			echo "<img src='../$tropa->avatar' /><br>";
			echo '<span>' . $nivel . '</span>';
			echo "</div>";
			if ($cont == MAXROW) {
				echo "</div>";
				$cont = 0;
			}
			$cont++;
			$idTropa++;
		}
		?>
	</div>
</div>